package routers

import (
	"github.com/kataras/iris/core/router"
	"github.com/kataras/iris"
	"irisx/servers/users"
)

func UserRouter(api router.Party){

	// 获取 url 问号后面的参数
	api.Get("/", func(ctx iris.Context) {
		userlist := users.QueryUsers()
		ctx.JSON(iris.Map{
			"data":userlist,
		})
	})
}
